package com.xyy.saas.payment.dao.mapper;

import com.xyy.saas.payment.dao.model.BankPayRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author lina
 * @Description 银行卡支付记录mapper
 * @Date 2022/3/9
 **/
@Mapper
public interface BankPayRecordMapper {
    // TODO: lina 2022/3/15  * 查询去掉
    /**
     * 根据中台支付流水号查询记录
     * @param payNo
     * @return
     */
    BankPayRecord queryByPayNo(@Param("payNo") String payNo);

    /**
     * 根据业务号查询记录
     * @param businessNo
     * @return
     */
    BankPayRecord queryByBusinessNo(@Param("businessNo") String businessNo);

    /**
     * 保存记录
     * @param bankPayRecord
     * @return
     */
    int insertSelective(BankPayRecord bankPayRecord);

    /**
     * 更新记录
     * @param bankPayRecord
     * @return
     */
    int updateByPayNo(@Param("record")BankPayRecord bankPayRecord);
}
